//1.0导入相关包

 import Vue from 'vue'
 import vueRouter from 'vue-router'
 import vueResource from 'vue-resource'


//导入相关。vue组件
//import App from './App.vue'
// import Login from './components/Login.vue'
// import Register from './components/Register.vue'
// import vueres from './components/vueresource.vue'


import mintUI from 'mint-ui'
Vue.use(mintUI)
//导入mui相关css
import '../statics/mui/css/mui.css'
import '../statics/mui/css/icons-extra.css'



//导入我们自己定义的css
import '../statics/css/site.css'



//导入mint-ui的css
import 'mint-ui/lib/style.min.css';

//2.0 在Vue中加载vueRouter
 Vue.use(vueRouter);
 Vue.use(vueResource);//使用vueResource对象才能自动在vue对象实例上挂在一个$http

 //2.0.1 在Vue上注册全局过滤器叫做tolowerCase
 
 // Vue.filter('tolowercase1',function(input){
 // 	return input.toLowerCase();
 // })

 //3.0定义路由规则对象
 
import App from './App.vue'
import Home from './components/Home/Home.vue'
import member from './components/member/member.vue'
import shopcar from './components/shopcar/shopcar.vue'
import search from './components/search/search.vue'



 let router = new vueRouter({
 	linkActiveClass:'mui-active',
 	  routes:[
 	  //表示浏览器如果访问的是http://localhost:3008/#/那么vue-router就会自动加载Home组件
 	    {name:'root',path:'/',redirect:'./Home'},
        {name:'home',path:'/home',component:Home},
        {name:'member',path:'/member',component:member},
        {name:'shopcar',path:'/shopcar',component:shopcar},
        {name:'search',path:'/search',component:search}
 	  ]
 });
 //4.0使用路由规则
 new Vue({
 	el:'#app',
 	router,
 	render:c=>c(App)
 })

